/**
 * @Author: ls <ls-mac>
 * @Date:   2019-08-13 17:57:12
 * @Last modified by:   ls-mac
 * @Last modified time: 2019-08-26 02:06:11
 */
import request from '../utils/reqaxios';

// /package/addOrEdit 套餐新增或修改
export async function packageAddOrEdit(params) {
  return request({
    url: '/package/addOrEdit',
    method: 'post',
    data: params,
  });
}

// /package/detail 套餐详情
export async function packageDetail(params) {
  return request({
    url: '/package/detail',
    method: 'post',
    data: params,
  });
}

// /package/page 套餐分页列表
export async function packagePage(params) {
  return request({
    url: '/package/page',
    method: 'post',
    data: params,
  });
}

// /package/page 套餐列表
export async function packageList(params) {
  return request({
    url: '/package/list',
    method: 'post',
    data: params,
  });
}

// /orderPackage/list(小程序后台公用)
export async function orderPackageList(params) {
  return request({
    url: '/orderPackage/list',
    method: 'post',
    data: params,
  });
}
